package com.bian.spring.framework.beans;

/**
 * 用来封装bean标签数据
 *      id属性
 *      class属性
 *      property子标签的数据
 *
 *      e.g.
 *      <?xml version="1.0" encoding="UTF-8"?>
 *      <beans>
 *          <bean id="userDao" class="com.example.dao.impl.UserDaoImpl">
 *              <property name="username" value="zhangsan"></property>
 *              <property name="password" value="123456"></property>
 *          </bean>
 *
 *          <bean id="userService" class="com.example.service.impl.UserServiceImpl">
 *              <property name="userDao" ref="userDao"></property>
 *          </bean>
 *      </beans>
 *
 * @author bian
 * 2021/01/22
 */
public class BeanDefinition {

    private String id;
    private String clazzName;
    private MutablePropertyValues propertyValues;

    public BeanDefinition() {
        this.propertyValues = new MutablePropertyValues();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClazzName() {
        return clazzName;
    }

    public void setClazzName(String clazzName) {
        this.clazzName = clazzName;
    }

    public MutablePropertyValues getPropertyValues() {
        return propertyValues;
    }

    public void setPropertyValues(MutablePropertyValues propertyValues) {
        this.propertyValues = propertyValues;
    }
}
